home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / NDK / NDK_1.3 / Include-Strip1.3 / include.h / graphics / copper.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-07-15  |  1008 b   |  66 lines

  1. #ifndef    GRAPHICS_COPPER_H
  2. #define    GRAPHICS_COPPER_H
  3. #define    COPPER_MOVE    0
  4. #define    COPPER_WAIT    1
  5. #define    CPRNXTBUF    2
  6. #define    CPR_NT_LOF    0x8000
  7. #define    CPR_NT_SHT    0x4000
  8. struct    CopIns
  9. {
  10. short    OpCode;
  11. union
  12. {
  13. struct    CopList    *nxtlist;
  14. struct
  15. {
  16. union
  17. {
  18. SHORT    VWaitPos;
  19. SHORT    DestAddr;
  20. }    u1;
  21. union
  22. {
  23. SHORT    HWaitPos;
  24. SHORT    DestData;
  25. }    u2;
  26. }    u4;
  27. }    u3;
  28. };
  29. #define    NXTLIST    u3.nxtlist
  30. #define    VWAITPOS    u3.u4.u1.VWaitPos
  31. #define    DESTADDR    u3.u4.u1.DestAddr
  32. #define    HWAITPOS    u3.u4.u2.HWaitPos
  33. #define    DESTDATA    u3.u4.u2.DestData
  34. struct    cprlist
  35. {
  36. struct    cprlist    *Next;
  37. UWORD    *start;
  38. SHORT    MaxCount;
  39. };
  40. struct    CopList
  41. {
  42. struct    CopList    *Next;
  43. struct    CopList    *_CopList;
  44. struct    ViewPort    *_ViewPort;
  45. struct    CopIns    *CopIns;
  46. struct    CopIns    *CopPtr;
  47. UWORD    *CopLStart;
  48. UWORD    *CopSStart;
  49. SHORT    Count;
  50. SHORT    MaxCount;
  51. SHORT    DyOffset;
  52. };
  53. struct    UCopList
  54. {
  55. struct    UCopList    *Next;
  56. struct    CopList    *FirstCopList;
  57. struct    CopList    *CopList;
  58. };
  59. struct    copinit
  60. {
  61. UWORD    diagstrt[4];
  62. UWORD    sprstrtup[(2*8*2)+2+(2*2)+2];
  63. UWORD    sprstop[2];
  64. };
  65. #endif
  66.